﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApplicationExecuteInfo.aspx.cs" Inherits="CentralOffice.WebClient.Tasks.ApplicationExecuteInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>填写申请执行信息</title>
        <link rel="stylesheet" type="text/css" href="../theme/2/style.css" />
    <script src="../inc/js/ccorrect_btn.js" type="text/javascript"></script>
</head>
<body>
<body class="bodycolor" topmargin="5">

<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="../images/sys_config.gif" WIDTH="22" HEIGHT="20" align="absmiddle" /><span class="big3">申请信息</span></td>
  </tr>
</table>

    <form id="form1" runat="server">
<table class="TableBlock "  width="98%">
<tr width=100%>
       <td nowrap class="TableData" style="width:120px;">申请编号：</td><td nowrap class="TableData fontBold" colspan="3"><asp:Literal ID="lblApplicationCode" runat="server"></asp:Literal></td>
   </tr>
   <tr width=100%>
       <td nowrap class="TableData" style="width:120px;">申请名称：</td><td nowrap class="TableData fontBold" colspan="3"><asp:Literal ID="lblName" runat="server"></asp:Literal></td>
   </tr>
   <tr>
    <td nowrap class="TableData" style="width:120px;">申请人：</td><td nowrap class="TableData fontBold"><asp:Literal ID="lblApplicant" runat="server"></asp:Literal></td>
    <td nowrap class="TableData" style="width:120px;">申请日期：</td><td nowrap class="TableData fontBold"><asp:Literal ID="lblDateOfApplication" runat="server"></asp:Literal></td>
   </tr>
   <tr><td nowrap class="TableData">审批内容：</td><td nowrap class="TableData fontBold" colspan="3"><asp:Literal ID="lblApprovalContent" runat="server"></asp:Literal></td></tr>
   <tr>
       <td nowrap class="TableData">申请状态：</td><td nowrap class="TableData fontBold"><asp:Literal ID="lblStatus" runat="server"></asp:Literal></td>
       <td class="TableData">附件：</td><td class="TableData fontBold"><asp:HyperLink ID="lblAttachments" runat="server" Visible="false"></asp:HyperLink></td>
   </tr>

</table>

<div style="margin-top:20px; margin-left:8px;"><h3>审批记录</h3></div>

<huag:OAGridView id="gvApproval" runat="server" DataKeyNames="Id" AllowSorting="True"  EnableTruncate="false"
        skinid="DefaultGridView" Width="98%"  DataSourceID="odsApproval" OnRowDataBound="gvApproval_RowDataBound"
        EnableViewState="False">
   <Columns>
       <asp:HyperLinkField DataTextField="Name" DataNavigateUrlFormatString="ApplicationView.aspx?id={0}" DataNavigateUrlFields="ApplicationId" HeaderText="名称" target="_blank" SortExpression="Name"/>
       <asp:BoundField DataField="Applicant" HeaderText="申请人" SortExpression="Applicant" />
       <asp:BoundField DataField="DateOfApplication" HeaderText="申请日期" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HtmlEncode="false" SortExpression="DateOfApplication" />
       <asp:BoundField DataField="ApprovedBy" HeaderText="审批者"  />
       <asp:BoundField DataField="DateApproved" HeaderText="审批日期" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HtmlEncode="false" />
       <asp:BoundField DataField="Opinion" HeaderText="审批意见"  />
       <asp:BoundField DataField="ResultApproved" HeaderText="本步审批结果" />
       <asp:HyperLinkField DataTextField="ApprovalAttachments" HeaderText="附件"  />
       <asp:BoundField DataField="PreviousApprovedBy" HeaderText="上步审批者"  />
       <asp:BoundField DataField="PreviousContentText" HeaderText="上步审批内容" />
       <asp:BoundField DataField="PreviousDateApproved" HeaderText="上步审批日期" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HtmlEncode="false" />
       <asp:BoundField DataField="PreviousResultApproved" HeaderText="上步审批结果" />
       
       <asp:HyperLinkField  Text="审批" DataNavigateUrlFormatString="Approval.aspx?id={0}" DataNavigateUrlFields="Id" />
       
   </Columns>
</huag:OAGridView>

<asp:ObjectDataSource id="odsApproval" runat="server"
 TypeName="CentralOffice.Task.BusinessActions.Approvals" 
 SelectMethod="GetByMasterId" ><%--OnSelecting="odsApproval_Selecting"--%>
    <SelectParameters>      
      <asp:QueryStringParameter QueryStringField="id" Name="masterId" />
    </SelectParameters>
</asp:ObjectDataSource>


<div style="margin-top:20px; margin-left:8px;"><h3> 申请执行结果描述：</h3></div>

<table class="TableBlock" width="90%" align="center">
    
    <tr><td nowrap class="TableData"><asp:TextBox ID="txtExecutiveDescription" runat="server" CssClass="BigInput" TextMode="MultiLine" Rows="4" Columns="80" Text="" Width="98%"></asp:TextBox></td></tr>
    <tr><td nowrap class="TableControl"  align="center"><asp:Button ID="btnSave" runat="server" Text="保存" CssClass="BigButton" OnClick="btnSave_Click" OnClientClick=" return validateClient();"  /></td></tr>
</table>
<script type="text/javascript">
    function validateClient() {
        var txtOpinion = document.getElementById("txtOpinion");
        if (txtOpinion.value.length == 0) {
            return false;
        }
    }
</script>
    </form>
</body>
</html>